package com.mmall.dao;

import com.mmall.pojo.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectArticleUserId(Integer userId);

    int updateByUserKeySelective(Article record);

    int deleteArticleUserId(@Param(value = "userId") Integer userId,@Param(value = "articleId")  Integer articleId);
}